#include <stdio.h>

main(void)
{
	int a = 0, b = 0, c = 0, d = 0;
	scanf("%d %d %d %d", &a, &b, &c, &d);

	int sum = a + b + c + d;
	float age = sum / 4.0;

	printf("Sum = %d; Average = %.1f", sum, age);

	return 0;
}